package com.lj.back.manage.scaffold.common.serializer;

import com.fasterxml.jackson.datatype.jsr310.deser.InstantDeserializer;

import java.time.format.DateTimeFormatter;
import java.util.function.BiFunction;
import java.util.function.Function;

/**
 * @author lv
 * @version 1.0.0
 */
public class MyInstantDeserializer extends InstantDeserializer {

    protected MyInstantDeserializer(Class supportedType, DateTimeFormatter formatter, Function parsedToValue, Function fromMilliseconds, Function fromNanoseconds, BiFunction adjust, boolean replaceZeroOffsetAsZ) {
        super(supportedType, formatter, parsedToValue, fromMilliseconds, fromNanoseconds, adjust, replaceZeroOffsetAsZ);
    }

    public MyInstantDeserializer(DateTimeFormatter formatter){
        super(InstantDeserializer.INSTANT,formatter);
    }
}
